/**
 * 路由配置，在 .umirc.ts 中引用
 * **/

export const ROUTES = [
  { exact: true, path: '/', redirect: '/index' },
  {
    path: '/',
    component: '@/layouts/main',
    routes: [
      {
        path: '/index',
        component: '@/layouts/home',
        routes: [{ path: '/index', component: './index/index' }],
      },
      {
        path: '/example',
        component: '@/layouts/example',
        routes: [
          { path: '/example/test', component: './test/index' },
          {
            path: '/example/fluidWallpaper',
            component: './effect/fluidWallpaper/index',
          },
          {
            path: '/example/smoothScroll',
            component: './effect/smoothScroll/index',
          },
          { path: '/example/lottie', component: './effect/lottie/index' },
          { path: '/example/color', component: './effect/color/index' },
          { path: '/example/gsap', component: './effect/gsap/index' },

          { path: '/example/uiandae', component: './effect/UIandAE/index' },
          { path: '/example/loadings', component: './effect/Loadings/index' },
          { path: '/example/lumen2d', component: './effect/lumen2d/index' },

          { path: '/example/three', component: './Three/index' },
          { path: '/example/webgl', component: './Three/webgl/index' },
          { path: '/example/threeTest', component: './Three/test/index' },
          { path: '/example/threeMath', component: './Three/math/index' },
          { path: '/example/threeCsg', component: './Three/csg/index' },
          { path: '/example/threeLoaders', component: './Three/loaders/index' },
          { path: '/example/curve', component: './Three/curve/index' },
          { path: '/example/noise', component: './Three/noise/index' },
          { path: '/example/renderer', component: './Three/renderer/index' },
          {
            path: '/example/avatarInput',
            component: './Three/avatarInput/index',
          },
          {
            path: '/example/threePointsTest',
            component: './Three/pointsTest/index',
          },
          {
            path: '/example/threeWavePoints',
            component: './Three/wavePoints/index',
          },
          { path: '/example/pointsGpu', component: './Three/pointsGpu/index' },
          {
            path: '/example/pointsAnimate',
            component: './Three/pointsAnimate/index',
          },
          {
            path: '/example/birdCage',
            component: './Three/birdCage/index',
          },
          { path: '/example/loading3d', component: './Three/loading3d/index' },
          { path: '/example/button3d', component: './tiktok/button3d/index' },
          {
            path: '/example/dayNightbuttons',
            component: './tiktok/DayNightbuttons/index',
          },
          {
            path: '/example/buttonLove',
            component: './tiktok/buttonLove/index',
          },
          {
            path: '/example/buttonColorful',
            component: './tiktok/buttonColorful/index',
          },
          {
            path: '/example/earthFlight',
            component: './tiktok/earthFlight/index',
          },
          {
            path: '/example/geminiSvg',
            component: './tiktok/geminiSvg/index',
          },
        ],
      },
      {
        path: '/other',
        component: './other/index',
        routes: [
          {
            path: '/other/constructor',
            component: './other/constructor/index',
          },
        ],
      },
    ],
  },
];

//example 后面不要接3级路由 （例：'/example/three/test'  要用  '/example/threeTest'）

export default ROUTES;
